package com.office.doctorsoffice.services.ws;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;

import java.net.URL;

public class NewappointmentClient {

	public static void main(String args[ ]) throws Exception {
		URL url = new URL("http://localhost:9876/DocOffice?wsdl");
		QName qname = new QName("http://ws.service.office.docoffice.com/", "NewappointmentImpl");
		Service service = Service.create(url, qname);
		NewappointmentEPI eif = service.getPort(NewappointmentEPI.class);
		System.out.println(eif.getTimeAsString());
		System.out.println(eif.getTimeAsElapsed());
		}	
}
